import { defineStore } from 'pinia'
import { routes } from '@/router/index'

export const useUserStore = defineStore("USER", {
    state() {
        return {
            allRoutes: routes
        }
    },
    // 和vuex一样
    getters: {

    },
    // 和vuex一样
    actions: {
        setAllRoutes(allRoutes: any) {
            this.allRoutes = allRoutes
        }
    }
})